Skip to main content

CollectionsApi

All URIs are relative to //api.estuary.tech/

MethodHTTP requestDescription
CollectionsColuuidCommitPostPost /collections/{coluuid}/commitProduce a CID of the collection contents
CollectionsColuuidContentsDeleteDelete /collections/{coluuid}/contentsDeletes a content from a collection
CollectionsColuuidDeleteDelete /collections/{coluuid}Deletes a collection
CollectionsColuuidGetGet /collections/{coluuid}Get contents in a collection
CollectionsColuuidPostPost /collections/{coluuid}Add contents to a collection
CollectionsFsAddPostPost /collections/fs/addAdd a file to a collection
CollectionsGetGet /collections/List all collections
CollectionsPostPost /collections/Create a new collection

CollectionsColuuidCommitPost

string CollectionsColuuidCommitPost(ctx, coluuid) Produce a CID of the collection contents

This endpoint is used to save the contents in a collection, producing a top-level CID that references all the current CIDs in the collection.

Required Parameters

NameTypeDescriptionNotes
ctxcontext.Contextcontext for authentication, logging, cancellation, deadlines, tracing, etc.
coluuidstringcoluuid

Return type

string

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CollectionsColuuidContentsDelete

string CollectionsColuuidContentsDelete(ctx, body, coluuid) Deletes a content from a collection

This endpoint is used to delete an existing content from an existing collection. If two or more files with the same contentid exist in the collection, delete the one in the specified path

Required Parameters

NameTypeDescriptionNotes
ctxcontext.Contextcontext for authentication, logging, cancellation, deadlines, tracing, etc.
bodyApiDeleteContentFromCollectionBodyVariable to use when filtering for files (must be either 'path' or 'content_id')
coluuidstringCollection ID

Return type

string

Authorization

bearerAuth

HTTP request headers

  • Content-Type: /
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CollectionsColuuidDelete

string CollectionsColuuidDelete(ctx, coluuid) Deletes a collection

This endpoint is used to delete an existing collection.

Required Parameters

NameTypeDescriptionNotes
ctxcontext.Contextcontext for authentication, logging, cancellation, deadlines, tracing, etc.
coluuidstringCollection ID

Return type

string

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CollectionsColuuidGet

[]CollectionsCollectionListResponse CollectionsColuuidGet(ctx, coluuid, optional) Get contents in a collection

This endpoint is used to get contents in a collection. If no colpath query param is passed

Required Parameters

NameTypeDescriptionNotes
ctxcontext.Contextcontext for authentication, logging, cancellation, deadlines, tracing, etc.
coluuidstringcoluuid
optional*CollectionsApiCollectionsColuuidGetOptsoptional parametersnil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a CollectionsApiCollectionsColuuidGetOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | -------------

dir | optional.String| Directory |

Return type

[]CollectionsCollectionListResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CollectionsColuuidPost

string CollectionsColuuidPost(ctx, body, coluuid, optional) Add contents to a collection

This endpoint adds already-pinned contents (that have ContentIDs) to a collection.

Required Parameters

NameTypeDescriptionNotes
ctxcontext.Contextcontext for authentication, logging, cancellation, deadlines, tracing, etc.
body[]int32Content IDs to add to collection
coluuidstringCollection UUID
optional*CollectionsApiCollectionsColuuidPostOptsoptional parametersnil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a CollectionsApiCollectionsColuuidPostOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | -------------

dir | optional.| Directory | overwrite | optional.| Overwrite conflicting files |

Return type

string

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CollectionsFsAddPost

string CollectionsFsAddPost(ctx, coluuid, content, optional) Add a file to a collection

This endpoint adds a file to a collection

Required Parameters

NameTypeDescriptionNotes
ctxcontext.Contextcontext for authentication, logging, cancellation, deadlines, tracing, etc.
coluuidstringCollection ID
contentstringContent
optional*CollectionsApiCollectionsFsAddPostOptsoptional parametersnil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a CollectionsApiCollectionsFsAddPostOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | -------------

dir | optional.String| Directory inside collection | overwrite | optional.String| Overwrite file if already exists in path |

Return type

string

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CollectionsGet

[]CollectionsCollection CollectionsGet(ctx, ) List all collections

This endpoint is used to list all collections. Whenever a user logs on estuary, it will list all collections that the user has access to. This endpoint provides a way to list all collections to the user.

Required Parameters

This endpoint does not need any parameter.

Return type

[]CollectionsCollection

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CollectionsPost

CollectionsCollection CollectionsPost(ctx, body) Create a new collection

This endpoint is used to create a new collection. A collection is a representaion of a group of objects added on the estuary. This endpoint can be used to create a new collection.

Required Parameters

NameTypeDescriptionNotes
ctxcontext.Contextcontext for authentication, logging, cancellation, deadlines, tracing, etc.
bodyApiCreateCollectionBodyCollection name and description

Return type

CollectionsCollection

Authorization

bearerAuth

HTTP request headers

  • Content-Type: /
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]